display text in pygame

92

how to write a font in pygame -

font = pygame.font.SysFont(None, 24)
img = font.render('hello', True, BLUE)
screen.blit(img, (20, 20))

Comments

Submit
0 Comments